package com.briup.corejava.chap13.bean;

public class Student {
    public String id;
    private String name;
    private int age;

    public Student() {}

    private Student(String id) {
        System.out.println("in private Student(id) ...");
        this.id = id;
    }

    //				String.class,String.class,int.class
    public Student(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId() {
        return id;
    }
    private void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "Student [id=" + id + ", name=" + name + ", age=" + age + "]";
    }
}
